<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 200px;
            height: 200px;
            background-color: pink;
            
            
            clip-path:polygon(0 0,0 0,0 0,0 0)

        }
        


    </style>
</head>
<body>
    <div class="box">
    </div>
    <script>
        let box=document.querySelector('.box')
        box.addEventListener('click',function(){
            console.log('点击了');
        })


    </script>
</body>
</html>